import { Component, OnInit } from "@angular/core";
import { Router } from "@angular/router";
@Component({
  selector: "app-nav",
  templateUrl: "./nav.component.html",
  styleUrls: ["./nav.component.scss"]
})
export class NavComponent implements OnInit {
  assets = {
    onNav: ""
  };
  on = "assets";
  navLists = [
    // {
    //   icon: '<i class="icon iconfont">&#xe611;</i>',
    //   label: "assets.assets",
    //   type: "assets",
    //   path: "/assets/lists"
    // },
    // {
    //   icon: '<i class="icon iconfont">&#xe603;</i>',
    //   label: "assets.history",
    //   type: "history",
    //   path: "/assets/history"
    // },
    // {
    //   icon: '<i class="icon iconfont">&#xe602;</i>',
    //   label: "assets.withdraw_address",
    //   type: "withdraw_address",
    //   path: "/assets/address"
    // }
  ];

  constructor(private router: Router) {}

  ngOnInit() {}

  onActive(item: any) {
    this.on = item.type;
    this.router.navigate([item.path]);
  }
}
